#!/bin/bash

# xfio-agent 运行示例脚本

echo "xfio-agent 运行示例"
echo "=================="

# 显示帮助信息
echo ""
echo "1. 显示帮助信息:"
echo "----------------"
./xfio-agent -h

# 示例运行命令
echo ""
echo "2. 示例运行命令:"
echo "----------------"
echo "# 连接到本地主控制器"
echo "./xfio-agent -master=http://localhost:8000 -token=your_token_here"
echo ""
echo "# 指定节点名称和IP"
echo "./xfio-agent -master=http://192.168.1.100:8000 -token=your_token_here -name=my-worker-node -ip=192.168.1.50"
echo ""
echo "# 使用不安全连接(测试环境)"
echo "./xfio-agent -master=http://192.168.1.100:8000 -token=your_token_here -insecure"

echo ""
echo "xfio-agent 示例脚本完成"